package ssm.service;

import ssm.dao.MyResult;
import ssm.dao.User;

import javax.servlet.http.HttpSession;

public interface UserService {

     MyResult login(String username, String password, HttpSession session);

     MyResult register(User user);

     MyResult checkValid(String username, String email);

     MyResult selectGetQuest(String username);

     MyResult forgetAnswer(String username, String question, String answer);

     MyResult forgetRestPassword(String username, String newPassword, String token);

     MyResult checkPasswordRepeat(String username, String newPassword);

     MyResult resetPassword(User user, String oldPassword, String newPassword);

     MyResult update_information(User user);

     MyResult getInformation(int userid);

     MyResult checkAdmin(User user);
}
